import java.sql.String;
public class stringMeth {
public static void main(String[] felight) {
String str1 = "Felight";
String str2 = "Rocks";
if(str1 == str2)
System.out.println("the string is equal");
else
System.out.println("the string is not equal");

stringMeth emp1 = new stringMeth();
stringMeth emp2 = emp1;
if(emp1.equals(emp2))
System.out.println("true");
else
System.out.println("false");

int N=7777777;
long t;
{
StringBuffer sb = new StringBuffer();
t=System.currentTimeMillis();
for (int i=N ; i-->0;) {
sb.append("");
}
System.out.println(System.currentTimeMillis() - t);
}
{
StringBuilder sb = new StringBuilder();
t= System.currentTimeMillis();
for (int i=N; i-->0;)
{
sb.append("");
}
System.out.println(System.currentTimeMillis() - t);
}
}
}